<template>
	<web-view v-if="path!=''" :src="path"></web-view>
</template>

<script>
	import {
		getSettingApi
	} from "@/api/api.js"
	export default {
		data() {
			return {
				path: ""
			}
		},
		onLoad(opt) {
			if (opt.type == "serve") {
				getSettingApi().then(res => {
					this.path = res.data.data.service_url
				})
				uni.setNavigationBarTitle({
					title: "Customer Service"
				})
			} else if (opt.type == "down") {
				this.path = opt.url
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>